﻿using ZYCommon;
using System;
using System.Windows.Forms;

namespace TextEditor
{
    

    public class A_Paste : A_Action
    {
        public A_Paste()
        {
            base.HotKey = Keys.Control | Keys.V;
        }

        public override string ActionName()
        {
            return "paste";
        }

        public override bool Execute()
        {
            base.myOwnerDocument._Paste();
            return true;
        }

        public override bool isEnable()
        {
            return (base.myOwnerDocument.CanModify() && ClipboardHandler.CanGetText());
        }
    }
}

